Optimal. Leaf size=84 \[ \frac {5}{16} a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tan (x)}{\sqrt {a \sec ^2(x)}}\right )+\frac {5}{16} a^3 \sqrt {a \sec ^2(x)} \tan (x)+\frac {5}{24} a^2 \left (a \sec ^2(x)\right )^{3/2} \tan (x)+\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {4207, 201, 223,
212} \begin {gather*} \frac {5}{16} a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tan (x)}{\sqrt {a \sec ^2(x)}}\right )+\frac {5}{16} a^3 \tan (x) \sqrt {a \sec ^2(x)}+\frac {5}{24} a^2 \tan (x) \left (a \sec ^2(x)\right )^{3/2}+\frac {1}{6} a \tan (x) \left (a \sec ^2(x)\right )^{5/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 4207
Rubi steps
\begin {align*} \int \left (a \sec ^2(x)\right )^{7/2} \, dx &=a \text {Subst}\left (\int \left (a+a x^2\right )^{5/2} \, dx,x,\tan (x)\right )\\ &=\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x)+\frac {1}{6} \left (5 a^2\right ) \text {Subst}\left (\int \left (a+a x^2\right )^{3/2} \, dx,x,\tan (x)\right )\\ &=\frac {5}{24} a^2 \left (a \sec ^2(x)\right )^{3/2} \tan (x)+\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x)+\frac {1}{8} \left (5 a^3\right ) \text {Subst}\left (\int \sqrt {a+a x^2} \, dx,x,\tan (x)\right )\\ &=\frac {5}{16} a^3 \sqrt {a \sec ^2(x)} \tan (x)+\frac {5}{24} a^2 \left (a \sec ^2(x)\right )^{3/2} \tan (x)+\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x)+\frac {1}{16} \left (5 a^4\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+a x^2}} \, dx,x,\tan (x)\right )\\ &=\frac {5}{16} a^3 \sqrt {a \sec ^2(x)} \tan (x)+\frac {5}{24} a^2 \left (a \sec ^2(x)\right )^{3/2} \tan (x)+\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x)+\frac {1}{16} \left (5 a^4\right ) \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\tan (x)}{\sqrt {a \sec ^2(x)}}\right )\\ &=\frac {5}{16} a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \tan (x)}{\sqrt {a \sec ^2(x)}}\right )+\frac {5}{16} a^3 \sqrt {a \sec ^2(x)} \tan (x)+\frac {5}{24} a^2 \left (a \sec ^2(x)\right )^{3/2} \tan (x)+\frac {1}{6} a \left (a \sec ^2(x)\right )^{5/2} \tan (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 78, normalized size = 0.93 \begin {gather*} \frac {1}{96} \cos ^7(x) \left (a \sec ^2(x)\right )^{7/2} \left (-30 \log \left (\cos \left (\frac {x}{2}\right )-\sin \left (\frac {x}{2}\right )\right )+30 \log \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )+\frac {1}{8} \sec ^6(x) (198 \sin (x)+85 \sin (3 x)+15 \sin (5 x))\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.36, size = 74, normalized size = 0.88
method | result | size |
default | \(\frac {\left (15 \left (\cos ^{6}\left (x \right )\right ) \ln \left (-\frac {\cos \left (x \right )-1-\sin \left (x \right )}{\sin \left (x \right )}\right )-15 \left (\cos ^{6}\left (x \right )\right ) \ln \left (-\frac {\cos \left (x \right )-1+\sin \left (x \right )}{\sin \left (x \right )}\right )+15 \left (\cos ^{4}\left (x \right )\right ) \sin \left (x \right )+10 \left (\cos ^{2}\left (x \right )\right ) \sin \left (x \right )+8 \sin \left (x \right )\right ) \cos \left (x \right ) \left (\frac {a}{\cos \left (x \right )^{2}}\right )^{\frac {7}{2}}}{48}\) | \(74\) |
risch | \(-\frac {i a^{3} \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left (15 \,{\mathrm e}^{10 i x}+85 \,{\mathrm e}^{8 i x}+198 \,{\mathrm e}^{6 i x}-198 \,{\mathrm e}^{4 i x}-85 \,{\mathrm e}^{2 i x}-15\right )}{24 \left ({\mathrm e}^{2 i x}+1\right )^{5}}+\frac {5 a^{3} \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}+i\right ) \cos \left (x \right )}{8}-\frac {5 a^{3} \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}-i\right ) \cos \left (x \right )}{8}\) | \(140\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 2175 vs.
\(2 (64) = 128\).
time = 4.49, size = 2175, normalized size = 25.89 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.56, size = 65, normalized size = 0.77 \begin {gather*} -\frac {{\left (15 \, a^{3} \cos \left (x\right )^{6} \log \left (-\frac {\sin \left (x\right ) - 1}{\sin \left (x\right ) + 1}\right ) - 2 \, {\left (15 \, a^{3} \cos \left (x\right )^{4} + 10 \, a^{3} \cos \left (x\right )^{2} + 8 \, a^{3}\right )} \sin \left (x\right )\right )} \sqrt {\frac {a}{\cos \left (x\right )^{2}}}}{96 \, \cos \left (x\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 79, normalized size = 0.94 \begin {gather*} \frac {1}{96} \, {\left (15 \, a^{3} \log \left (\sin \left (x\right ) + 1\right ) \mathrm {sgn}\left (\cos \left (x\right )\right ) - 15 \, a^{3} \log \left (-\sin \left (x\right ) + 1\right ) \mathrm {sgn}\left (\cos \left (x\right )\right ) - \frac {2 \, {\left (15 \, a^{3} \mathrm {sgn}\left (\cos \left (x\right )\right ) \sin \left (x\right )^{5} - 40 \, a^{3} \mathrm {sgn}\left (\cos \left (x\right )\right ) \sin \left (x\right )^{3} + 33 \, a^{3} \mathrm {sgn}\left (\cos \left (x\right )\right ) \sin \left (x\right )\right )}}{{\left (\sin \left (x\right )^{2} - 1\right )}^{3}}\right )} \sqrt {a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (\frac {a}{{\cos \left (x\right )}^2}\right )}^{7/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________